@prefix-cls: experts-update;

.overflow() {
  overflow-y: hidden;
  overflow-x: hidden;
}

.displayDirection() {
  display: flex;
  flex-direction: column;
}

.@{prefix-cls} {
  &-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    .overflow();
  }

  &-info-view > .ant-col {
    display: flex;
    margin-bottom: 9px;

    span.label {
      width: 11rem;
      min-width: 11rem;
      display: inline-block;
      flex-grow: 0;
      overflow: hidden;
      white-space: nowrap;
      text-align: right;
      vertical-align: middle;
      color: rgba(0, 0, 0, 0.65);
    }

    span.correct {
      color: #409eff;
    }

    span.deny {
      color: red;
    }

    span:nth-child(2) {
      display: inline-block;
      width: auto;
      overflow: hidden;
      text-overflow: ellipsis;
      // white-space: nowrap;
    }
  }

  &-row {
    width: 100%;
    height: 100%;
    .overflow();

    &-col {
      width: 100%;
      height: 100%;
      .overflow();

      .ant-col {
        max-width: 100%;
      }

      &-base {
        height: 450px;
      }

      .imageInfo {
        .avatar-uploader {
          height: 168px;
        }

        .ant-upload-select-picture-card,
        .ant-upload-list-picture-card-container {
          width: 160px;
          height: 160px;

          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }

          .ant-upload-list-item-thumbnail {
            object-fit: cover;
          }
        }
      }
    }

    .operateInfo {
      font-size: 22px;
      cursor: pointer;
      margin: 0 3px;
    }

    .counterpartInfoTable {
      .ant-table {
        overflow-x: auto !important;
      }
    }

    .certificate-info-modal {
      .avatar-uploader {
        height: 178px;
      }

      .ant-upload-select-picture-card,
      .ant-upload-list-picture-card-container {
        width: 280px;
        height: 170px;
        object-fit: cover;

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
    }
  }

  &-rigSwitchRow {
    padding: 0 10px;

    .ant-col {
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }

  &-certificateInfo {
    margin: 12px;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.65);
    border-radius: 4px;

    &-picture {
      width: 100%;
      height: 240px;
      margin-bottom: 12px;
      overflow: hidden;
    }

    dl {
      margin-bottom: 12px;
      display: flex;
    }

    dt {
      min-width: 5rem;
      color: rgba(0, 0, 0, 0.65);
      text-align: right;
      font-weight: normal;
    }

    dd {
      margin-bottom: 0;
      flex: auto;

      .ant-btn {
        margin: 0 3px;

        .anticon {
          font-size: 20px;
        }
      }
    }

    dl:first-child {
      dt {
        display: flex;
        align-items: center;
        justify-content: right;
      }
    }
  }

  &-detailViewCardBody {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;

    &-Col {
      display: flex;
      flex-direction: column;
      height: 100%;

      &-form {
        flex: auto;
        overflow: hidden;
      }

      &-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 0;
        border-top: 1px dashed #cdcdcd;
      }
    }
  }

  &-conmpanyCardExtra {
    transform: rotate(90deg);
  }

  &-updateCollapse {
    background-color: #ffffff;

    .ant-collapse-item,
    .ant-collapse-item-active {
      border-bottom: 0px !important;
    }

    .ant-divider-horizontal.ant-divider-with-text {
      margin: 0px;
    }

    .ant-divider-inner-text {
      font-weight: 600;

      .one-icon {
        font-size: 14px;
        margin-right: 4px;
      }
    }

    .ant-collapse-content > .ant-collapse-content-box {
      padding: 5px 40px 5px 10px;
    }

    .ant-collapse-item {
      border-bottom: none;
      background-color: #ffffff;

      .ant-collapse-header {
        padding: 6px 16px;
      }
    }
  }

  &-collapseInfoStyle {
    background-color: #ffffff !important;

    .ant-collapse-item,
    .ant-collapse-item-active {
      border-bottom: 0px !important;
    }

    .ant-divider-horizontal.ant-divider-with-text {
      margin: 0px;
    }

    .ant-divider-inner-text {
      font-weight: 600;
    }

    .ant-collapse-content > .ant-collapse-content-box {
      margin: 5px 20px;
      padding: 0px;
      display: flex;

      .ant-row {
        padding: 10px 10px 0px;
        background: #f8f8f8;
        border-radius: 4px;
        width: 100%;
      }
    }

    .ant-collapse-item {
      border-bottom: none;
      background-color: #ffffff;

      .ant-collapse-header {
        padding: 6px 16px;
      }
    }
  }

  &-rigSwitchRow {
    padding: 0 10px;

    .ant-col {
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }

  &-rightRowBody {
    padding: 5px 20px 0px;

    &-rowCol {
      box-sizing: border-box;
      display: flex;
      width: 100%;
      margin-bottom: 10px;
      justify-content: space-between;

      &-title {
        box-sizing: border-box;
        // width: 6rem;
        // text-align-last: justify;
        // font-weight: 600;
        color: rgba(0, 0, 0, 0.65);
        // position: relative;
        text-align: right;
      }

      &-titleInfo {
        box-sizing: border-box;
        width: 8rem;
        color: rgba(0, 0, 0, 0.65);
        text-align: right;
      }

      &-content {
        flex: auto;
        width: 65%;
        // color: #494949;
        // padding-left: 10px;
      }
    }
  }

  &-detailCard {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, 33%);
    grid-gap: 0.5rem;
  }

  &-detailCardChild {
    padding: 5px 10px;
    text-align: center;
    background-color: #409eff0a;
    border-radius: 4px;
    color: #409eff;
    border: 1px solid rgba(160, 207, 255, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }

  &-CardAutoComplete {
    .ant-card-head-title {
      width: 30%;
    }

    .ant-card-extra {
      width: 70%;
      text-align: right;
      // padding: 5px 0;
    }

    &-autoInput {
      .ant-input-affix-wrapper {
        border-radius: 50px;
      }
    }
  }

  &-arrowStyles {
    .anticon:hover {
      transform: scale(1.2);
    }
  }

  /**
  * 新版客户详情
  */
  &-companyBase {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    row-gap: 8px;

    &-headerBox {
      background: #ffffff;
      width: 100%;
    }

    &-bodyBox {
      flex: auto;
      overflow: hidden;
      background-color: #ffffff;

      &-scrollDiv {
        width: 100%;
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
      }
    }

    &-topRightInfo {
      height: 100%;
      display: flex;
      align-items: center;

      &-labelText {
        font-size: 16px;
        margin-bottom: 5px;
        color: #666666;
      }

      &-contentText {
        font-size: 14px;
        color: #999999;
      }
    }

    &-topInfoBase {
      padding: 5px 0rem;

      &-titleName {
        font-size: 24px;
        display: flex;
        align-items: center;
      }

      &-contentInfo {
        color: #8e8e8e;
        font-size: 14px;
        padding: 5px 0px;
      }

      &-contentValue {
        color: #666666;
      }
    }

    &-allBtn {
      white-space: nowrap;

      .ant-btn {
        margin: 5px 10px;
      }
    }
  }

  /**
  * 基本信息 
  */
  &-tabBasicCol {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    justify-content: space-between;

    &-labelText {
      box-sizing: border-box;
      width: 8rem;
      color: rgba(0, 0, 0, 0.65);
      text-align: right;
    }

    &-contentText {
      flex: auto;
      width: 65%;
      word-break: break-all;
    }
  }

  /*
  * 共享时间轴
  */
  &-shareTimeline {
    width: 100%;
    padding: 10px 0px;

    .ant-timeline.ant-timeline-pending .ant-timeline-item-last .ant-timeline-item-tail {
      border-left: 2px solid #f0f0f0;
    }

    .ant-timeline-item {
      padding: 0px 0px 10px;
    }

    &-timeText {
      font-weight: 700;
      font-size: 18px;
    }

    &-contentText {
      color: #999999;

      span {
        color: #666666;
        font-size: 16px;
      }
    }
  }

  /**
  * 跟进记录样式
  */
  &-followTabBox {
    width: 100%;

    &-rowListBox {
      border: 1px solid #f0f0f0;
      padding: 12px;
      background-color: rgba(249, 249, 249, 0.8);
    }

    &-titleText {
      display: flex;
      justify-content: space-between;
      width: 100%;
      color: #666666;
      margin-bottom: 10px;

      &-nameText {
        font-size: 16px;
        color: #404040;
        font-weight: 600;
      }
    }

    &-contentLabel {
      color: #999999;
      white-space: nowrap;
    }

    &-contentValue {
      word-break: break-all;
      // color: #666666;
    }
  }
}
